package cn.spring.dao.impl;

import cn.spring.dao.Ink;

import java.awt.*;

/**
 * 彩色墨盒
 */
public class ColorInk implements Ink {

    public String getColor(int r,int g, int b){
        Color color = new Color(r,g,b);
        return "#"+Integer.toHexString(color.getRGB()).substring(2);
    }
}
